Model Preview
Model Preview displays a read-only version of the model for review and testing.
When testing your app or viewing your test results, you might want to revisit the model in order to understand how various parts are connected. To view a model go to Designer > Models and click View on a model of your choice.
If you're a new user, you might want to try creating a new model first so that you have something to work with.
If this is your first time seeing the Model Preview then you may want to review the visual comparison between Model Editing and Model preview.
At the top of the Model Preview page there are handy links related to the current model:
- Models: Links to the full model list.
- Results: Links to test results
- Coverage: coverage
- Test Cases: test cases.
- Export: Download the current model as json.
- Edit: Make changes to the currnt model.
- Run: Test this model in a Live Run.
Model preview top menu
Workspace
The Workspace displays a visual representation of your model. Clicking on a state or action shows the properties for the selected element in the Inspector. You can click and drag on empty space to pan or scroll when hovering over the workspace to zoom.
Model workspace
Element Properties
Selecting an element in the Workspace will automatically enable the Element Properties tab. You can alter the width of the Inspector by dragging the border between the Inspector and the Workspace.
Model preview right pane
State Properties
The following properties are shown when selecting a state:
- State Name
- Description: free text describing the state.
- Type: either Start, Normal, Cleanup or Exception.
- Tags: to categorize your model to help with bug hunting.
Model preview state properties
The Run section reveals any snippets or parameters that are defined within the context of the state. Any snippets that are associated with the state will run the defined script within the snippet when the DAI engine lands on that particular state. Any parameters defined within the state are available to the state and any child actions that are defined within the state.
Model preview state run actions
Action Properties
The following properties are shown when selecting an action:
- Action Name
- Description: free text describing the action.
- Type: Normal, Sequent or Previous.
- Weight: the probability of the engine selecting the action during an exploratory test.
- Action Limit: number of times an action can be chosen within a state.
- Reset action limit: reset action limit upon entering a state.
- Tags: categories to help with Bug Hunting.
- Connection Destination(s): any connected states or sequent actions.
Model preview action properties
Run Actions
There are 3 stages that occur when running an action. Each stage is described below.
Model preview action run actions
Pre-Run
Pre-conditions
These are rules that must be met before an action will be run by the engine. There can be multiple pre-conditions for any action. They can include any parameters that are in scope including parameters from the parent state and global scope. Each pre-condition contains the following fields:
- Parameter: the name of the parameter. The scope is also shown for each parameter in braces.
- Type: the parameter data type.
- Operation: the operator used for comparison.
- Value: the parameter value used in conjunction with the operator.